Skip to content

AsyncSubject.GetResult() method

Defined in

Type: AsyncSubject Namespace: System.Reactive.Subjects Assembly: System.Reactive.dll

Applies to

netstandard2.0

public T GetResult()

Summary: Gets the last element of the subject, potentially blocking until the subject completes successfully or exceptionally.

Returns: T -- The last element of the subject. Throws an InvalidOperationException if no element was received.

Exceptions

TypeCondition
System.InvalidOperationExceptionThe source sequence is empty.